package com.becca.cake.service.category;

import java.util.List;



import java.util.Map;


import com.becca.cake.model.category.GoodCategoryModel;
import com.becca.cake.model.system.AdminDO;

/**
 * 分类管理service接口
 * @copyright  尊星(上海)信息科技有限公司
 * @author mouwanming
 *
 */
public interface IGoodCategoryService
{
	
	/**
     * 查询分类名称
     * @param map
     * @return
     * @throws Exception
     */
	List<GoodCategoryModel> selectGoodCategoryName() throws Exception;
	
	/**
     * 查询所有分类
     * @param map
     * @return
     * @throws Exception
     */
	List<GoodCategoryModel> selectGoodCategory(Map<String, Object> map) throws Exception;
	
	/**
	 * 查询分类总条数
     * @param map 
	 * @return
	 * @throws Exception
	 */
	Long selectGoodCategoryCount(Map<String, Object> map) throws Exception;
	
	/**
	 * 添加商品分类信息
     * @param goodCategoryModel 
	 * @return
	 * @throws Exception
	 */
	void insertOrUpdateGoodCategory(GoodCategoryModel goodCategoryModel,AdminDO adminDo) throws Exception;

	/**
	 * 禁用 启用
     * @param id 
	 * @return
	 * @throws Exception
	 */
	void updateGoodCategoryById(Map<String, Object> map) throws Exception;
	
	/**
	 * 根据id查询分类信息
     * @param id 
	 * @return
	 * @throws Exception
	 */
	GoodCategoryModel selectGoodCategoryById(Integer id) throws  Exception;
	
}
